
extends ../public/layout

block content
    include header
    div.container
        nav.navbar.navbar-inverse(role="navigation" style="margin-bottom:0;margin-top:20px")
            div
                ul.nav.navbar-nav
                    li.active: a 我的菜谱
                    li: a 我的菜单
                    li: a 我的好友
                    li: a 我的收藏
                    li: a 我的私信
        div.wrapper-content
            p(style="text-align:right;")
                a(href="/user/#{user.id}/recipe/publish").btn.btn-default 发布菜谱
            mixin item(recipe)
                div.wrapper
                    a(href="/recipe/details/#{recipe.id}", alt="#{recipe.title}" target="_blank")
                        img(src="#{recipe.finishedProductImage}", alt="recipe.title")
                    p.title #{recipe.title}
                    div.bottom-panel
                        span.left 6个小时前
                        div.inline.right
                            span.glyphicon.glyphicon-heart
                            |  0
                            span.glyphicon.glyphicon-comment
                            |  23
            each recipe,i in recipes
                if(i%4==0)
                    div.item-panel
                        + item(recipe)
                else
                    div.item-panel(style="margin-left:8px")
                        + item(recipe)

            div.clearfix
